package com.freshmarket.freshmarket.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ViewConfiguration implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index").setViewName("index");
        registry.addViewController("/couponCenter").setViewName("couponCenter");
        registry.addViewController("/loginAndRegister").setViewName("loginAndRegister");
        registry.addViewController("/shoppingCart").setViewName("shoppingCart");
        registry.addViewController("/naviMap").setViewName("naviMap");
        registry.addViewController("/toProduct").setViewName("toProduct");
        registry.addViewController("/KillProduct").setViewName("KillProduct");
        registry.addViewController("/myCenter").setViewName("myCenter");
        registry.addViewController("/shoppingCart").setViewName("shoppingCart");
    }
}
